<?php

/**
 * verwaltung actions.
 *
 * @package    adminslittlehelper
 * @subpackage verwaltung
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class addHardwareAction extends sfAction
{
  /**
   * Executes index action
   *
   */
  public function execute()
  {
  	$hardware = new Rechner();
    $hardware->setBenutzerId(1);
    $hardware->setStandortId($this->getRequestParameter('id'));
    $hardware->setBezeichnung($this->getRequestParameter('label'));
    $hardware->setBemerkung($this->getRequestParameter('comment'));

    $hardware->save();

    $this->redirect('management/showOverview?id='.$this->getRequestParameter('id').'&dest='.$this->getRequestParameter('dest'));
  }
}
